import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { ParentComponent } from './parent/parent.component';
import { Son3Component } from './son3/son3.component';
import { Son4Component } from './son4/son4.component';



const routes: Routes = [
  {
    // 放访问该模块的首页的时候，默认加载son3组件，同时加载son4组件在<router-outlet name="aux"></router-outlet>
    path: 'communicate-test', component: ParentComponent, children: [
      { path: '', component: Son3Component },
      { path: '', component: Son4Component, outlet: 'aux' },
    ]
  }
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class CommunicateRoutingModule { }
